function getFormValue(formID) {
    var tag = $("#" + formID).serializeArray();
    var res = {};
    $.each(tag, function(i, field) {
        if (res[field.name]) {
            res[field.name] = res[field.name] + "," + field.value;
        } else {
            res[field.name] = field.value;
        }
    });
    return res;
}
function setFormValue(data){
	for(key in data){
		$("#"+key).val(data[key]);
	}
}